FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build

WORKDIR /src
COPY . .
RUN dotnet publish src/GatewayBranch.Application/GatewayBranch.Application.csproj \
    -c Release -o /app/publish \
    --self-contained false \
    /p:UseAppHost=false

FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
WORKDIR /app

ENV TZ=Asia/Shanghai

COPY --from=build /app/publish .

ENTRYPOINT ["dotnet", "GatewayBranch.Application.dll"]
